<template>
    <div>
        <h1>{{ title }}--count:{{ count }}</h1>
        <button @click="changeCount">该变值</button>
    </div>
</template>

<script>
export default {
    name: "One",
    data() {
        return {
            title: "One",
            count: 0,
        };
    },
    methods: {
        changeCount() {
            this.count++;
        },
    },
    mounted() {
        console.log("One");
    },
};
</script>

<style></style>
